add eventdispatcher