Cosmetic: shorten up main treeview selection code