click functionality without re-rendering the tree