added before_filter for event_types