add dragging functionality for tree nodes