add pages controller and homepage