Make tree view and list view each optional with show_tree and show_list
properties