toggle between list and table views.