add `undelegateEvents` method