add event handler base class