added pages controller and routes