pages controller changes