adds event handlers for nestedlist