update to page-api.php