Update event_controller.rb