better way to show selected nodes in left panel