Updated route.php changed logic