updated MaintenanceController.php