         case Section.CurrentLocation.rawValue:
             return 1
         case Section.UserPickedLocation.rawValue:
-            return (userPickedLocationPin == nil ? 0 : 1)
+            return (pickedLocationCoordinate == nil ? 0 : 1)
         case Section.Placemarks.rawValue:
             return placemarks.count
         case Section.SearchedLocation.rawValue:


        case Section.Placemarks.rawValue:
            let placemark = placemarks[indexPath.row]
            pickedLocationCoordinate = placemark.location.coordinate

        case Section.SearchedLocation.rawValue:
            let placemark = self.searchedMapItems[indexPath.row].placemark
            pickedLocationCoordinate = placemark.location.coordinate

        case Section.FoursquareVenue.rawValue:
            let foursquareVenue = foursquareVenues[indexPath.row]
            pickedLocationCoordinate = foursquareVenue.coordinate

        default:
            break
        }

        if let pickedLocationCoordinate = pickedLocationCoordinate {
            let region = MKCoordinateRegionMakeWithDistance(pickedLocationCoordinate, 200, 200)
            mapView.setRegion(region, animated: true)
        }


        }
    }

    var selectedLocationCoordinate: CLLocationCoordinate2D? {
        willSet {
            if let coordinate = newValue {
                updateUserPickedLocationPinWithCoordinate(coordinate)
            }
        }
    }

    override func viewDidLoad() {
        super.viewDidLoad()

