Added a switch view between map and list.