fix treeview mode in menu