> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-doc-2312-standard-user-attributes.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?

> Webpage freezing after closing an On-site Messaging campaign? Add the required trackDismiss and dismissMessage functions to the close button.

## 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-doc-2312-standard-user-attributes/opS1C-NZKBQrlTaY/images/moengage_5ee5a9.png?fit=max&auto=format&n=opS1C-NZKBQrlTaY&q=85&s=3bd9f6a52226892da91df4ae1f5103de" width="1376" height="704" data-path="images/moengage_5ee5a9.png" />
