update events.php