add event handler support