add before_filter to eventscontroller