Minor changes to TreeView. Context menu disappears when user clicks elsewhere, expand/collapse hidden when node has no children