Fix for tree expand/collapse

fix for issue :  tree is not expanding/collapsing when user clicks on
the icon.