implement removeEventHandlers