Update generate_page.php