     @IBAction func footerButtonSelected(_ sender: AnyObject) {
         searchResultsCollectionView.setContentOffset(CGPoint.zero, animated: false)
         if sender.tag == 2 {
-            pageStart += 20
             pageCount += 1
         } else if sender.tag == 3 {
-            pageStart -= 20
             pageCount -= 1
         }
+        searchForProducts()
     }
 
     // MARK: UISearchBarDelegate

    
    @IBAction func sortPickerDoneSelected(_ sender: AnyObject) {
        currentSort = SortingOptions.allValues[sortPicker.selectedRow(inComponent: 0)]
    }
    
    @IBAction func sortPickerCancelSelected(_ sender: AnyObject) {

                previousButton.isEnabled = false
                previousButton.setTitleColor(.gray, for: .normal)
            }
        }
    }

