Update events.php