changed listwidget to treewidget