pages controller completed