update pages controller