clear selection should reset treeMode