Refactor events index to use erb so that logic can be duplicaed from events helper function (in order to more easily use erb for things like forms)