switching from modal to page