Added selection of primitives from TreeView