setup pages and correct navigation