set up routes and add pages