Ho to react on selection in Tree