re-added closePopup line