seperating popup and page