                 hoursDict["Sun"] = sunHours
                 
                 self.hours.append(hoursDict)
-
-            }
-        }
-        self.detailsRequest.notify(queue: DispatchQueue.main, execute: {
-            self.segueToTable()
-        })
-    }
-
+            })
+            
+        }
+        
+        
+    }
+    
     func yelpSearch() {
         myRequest.enter()
         let url:String = "https://api.yelp.com/v3/businesses/search"

    
    @IBOutlet weak var addressTxt: UITextField!
    @IBOutlet weak var openSwitch: UISwitch!

    @IBOutlet weak var locationSwitch: UISwitch!
    
    override func viewDidLoad() {

        if addressTxt.text!.isEmpty && self.locationSwitch.isOn == false{
            self.displayAlert("Error", message: "Please provide a location.")
        } else{
            self.yelpSearch()
        }
        locationManager.stopUpdatingLocation()
    }
    
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        self.view.endEditing(true)
    }
    
    func getToken() {
        let url: String = "https://api.yelp.com/oauth2/token"
        let params: [String: Any] =
