Add selection to tree component.