I moved the verification back to the pop-up class. This was done because from the window open page we would have to check for the pop-up frame in order to see if it is displayed.