add eventhandling to nodes