made test cases for menu/non-menu and pop-up/newpage