Update addpages.php