update pages.php and home.php