       self.settings.alpha = 0
       self.backgroundButton.alpha = 0
     })
-    UserDefaults.standard.setRadius(value: self.radius)
-    UserDefaults.standard.setNoOfResults(value: self.results)
+    saveRadiusAndResults()
   }
   
   @IBAction func radiusSliderMoved(_ sender: UISlider) {

    updateRadiusAndUnitsLabels()
  }
  
  // MARK: Segue Functionality
  
  override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
    if segue.identifier == "toMap" {
      let controller = segue.destination as! MapVC
      controller.makeNetworkCall = makeNetworkCall
      controller.searchRadius = Int(radius)

    measurementsButton.layer.cornerRadius = 10
    resultsLabel.text = "\(results)"
    updateRadiusAndUnitsLabels()
    UIView.animate(withDuration: 0.5, animations: {
      self.settings.alpha = 1
      self.backgroundButton.alpha = 1
