create pages controller and cofigure routes