Set whatever Variable is being used to show the pop-up screen to false (I assume it is true to show the pop-up.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.