support for no tree in tree-view