onHide callback for Popup