add command to toggle tree view