add eventhandlers
memo for event handlers