 			button.layer.cornerRadius = 16
 			let bundle = NSBundle(forClass: LocationPickerViewController.self)
 			button.setImage(UIImage(named: "geolocation", inBundle: bundle, compatibleWithTraitCollection: nil), forState: .Normal)
-			button.addTarget(self, action: "currentLocationPressed", forControlEvents: .TouchUpInside)
+			button.addTarget(self, action: #selector(LocationPickerViewController.currentLocationPressed),
+			                 forControlEvents: .TouchUpInside)
 			view.addSubview(button)
 			locationButton = button
 		}

			showItemsForSearchResult(nil)
			
			searchTimer = NSTimer.scheduledTimerWithTimeInterval(0.2,
				target: self, selector: "searchFromTimer:",
				userInfo: [LocationPickerViewController.SearchTermKey: searchTerm],
				repeats: false)
		}

		searchBar.delegate = self
		
		// gesture recognizer for adding by tap
		mapView.addGestureRecognizer(UILongPressGestureRecognizer(target: self,
            action: #selector(LocationPickerViewController.addLocation(_:))))
		
		// search
		navigationItem.titleView = searchBar
