pages controller updated