generate pages controller with index action