update name to event_name on trigger function