Refactored treeview's display of open files.