         
         if chosenRooms.count == maxNumRooms {
             tableView.reloadData()
-            selectchosenRooms()
+            selectChosenRooms()
         }
         
         delegate?.updateSelectedRooms(for: chosenRooms)

        setUpView()
        setupDictionaries()
        setupCurrentSort()
        selectchosenRooms()
    }
    
    required init?(coder aDecoder: NSCoder) {

        currentSort = sortHeaders(for: Array(currentResults.keys))
        self.showEmptyViewIfNeeded()
        tableView.reloadData()
        selectChosenRooms()
    }
    
    func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
