Added some formatting to subject tree. Fixed more problems with treeview.