added pages controller and views