added pages controller
added pages controller