> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-user-guide.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Why Does the Screen Freeze After Closing the OSM Campaign?

## Problem

The webpage experiences a temporary freeze after the On-site Messaging (OSM) campaign is closed.

## Solution

To resolve the issue, ensure the following functions are included under **Settings** > **Styling** > **Custom Attributes** in the close button when closing the OSM campaign:

* MoeOsm.trackDismiss();
* MoeOsm.dismissMessage();

<img alt="Screenshot 2025-01-22 at 3.27.15 PM.png" src="https://mintcdn.com/moengage-user-guide/9Jgd1E_kVQZiQVJ3/images/moengage_5ee5a9.png?fit=max&auto=format&n=9Jgd1E_kVQZiQVJ3&q=85&s=5518d5a0faf8d8e366fa4456a181ce67" width="1376" height="704" data-path="images/moengage_5ee5a9.png" />
