can switch between map and list view