add pages controller and routes