Update pages.cpp