add addEventHandler method