Treeview: minor code styling