         }
     }
 
+    var searchedMapItems = [MKMapItem]() {
+        didSet {
+            reloadTableView()
+        }
+    }
+    var searchedLocationPins = [UserPickedLocationPin]()
+
     lazy var geocoder = CLGeocoder()
     var placemarks = [CLPlacemark]() {
         didSet {

            cell.locationLabel.text = placemark.subLocality + " " + placemark.thoroughfare
            cell.checkImageView.hidden = true

        default:
            break
        }

        case CurrentLocation = 0
        case UserPickedLocation
        case Placemarks
        case SearchedLocation
    }

    func numberOfSectionsInTableView(tableView: UITableView) -> Int {
        return 4
    }

    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
