- added code to select the node on tree