added pages controller and displayed user info