added parameters to events.php