Refactored routes.php