create pages controller and set root route