addpage.php updated