add routes and controller for pages