setup pages controller, routes, and views