updating addEvent.php