working on page switching and build