generated pages controller