seperating page and popup