Changes files to .php and added functionality in Events.php