Fixed 7 rubocop errors in treeview