Listening to popupClose