added the schedules.php controller