changed pages controller to require less