onTreeSelectionChange()

This function is called after selection in tree changes.