added animation to flip between the table view and the map view