         showStores = stores
         onlyShowOpenStores = openNow
         distanceFilter = Double(distanceInMiles)
+        
+        if let currentLocation = UserLocation.instance.currentCoordinate {
+            loadStores(at: currentLocation)
+            
+        }
+        
+    }
+    
+    func didSelectFilters(_ filter: FilterViewController, farmersMarkets: Bool, groceryStores: Bool, coordinate: CLLocationCoordinate2D) {
+        
+        showFarmersMarkets = farmersMarkets
+        showStores = groceryStores
         
         if let currentLocation = UserLocation.instance.currentCoordinate {
             loadStores(at: currentLocation)

        }
        
        return stores
    }
    
    func loadStores(at coordinate: CLLocationCoordinate2D) {
        
        startSpinningIndicator()
        
        let distanceInMeters = DistanceCalculation.milesToMeters(miles: distanceFilter)
        
        SearchStores.searchForStoresLocations(near: coordinate, with: distanceInMeters) { stores in
            
            self.stores = self.filterStores(from: stores)
            
            self.main.addOperation {
                
                self.tableView.reloadData()
                
                self.stopSpinningIndicator()
                self.refreshControl?.endRefreshing()
                
            }
            
            if self.stores.isEmpty {
                
                self.makeNoteThatNoStoresFound(additionalMessage: "User is in Stores Table View")
                
            }
            
        }
        
    }
    
    


//TODO: Integrate with Carthage

class StoresTableViewController: UITableViewController, SideMenuFilterDelegate, FilterDelegate, UIGestureRecognizerDelegate {
    
    var stores: [Store] = []
    
