neaten event_helper.rb