generated pages controller with an index action