added pages controller and home page