generated pages controller and view