fixes for isPopupTrigger() issues