created a controller for pages and switched the home page to that controller