added pages controller
Done with pages