create pages controller and set root