updated to showPopup