update pages.php