popup: check close button exists in cancelPopup