updated web.php to new format