         }
         
         searchResultsTableView.snp.makeConstraints { make in
-            make.edges.equalToSuperview()
+            make.top.equalTo(view.safeAreaLayoutGuide)
+            make.leading.trailing.bottom.equalToSuperview()
         }
         
         discoverContainerView = UIView()

    }
    
    override func viewDidAppear(_ animated: Bool) {
        // TODO: allow for a user to delete these searches as well
        super.viewDidAppear(animated)
        pastSearchesTableViewReloadData()
    }

    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        self.navigationController?.navigationBar.prefersLargeTitles = false
        searchResultsTableView.reloadData()
        searchController?.searchBar.isHidden = false
    }
