added page controller with desired actions to route to required pages.