detect the popup window on screen