Added ability to toggle between map and list directions