Update EventsController.php