switch between map and tableview