     }
     
     func didDismissSearchController(searchController: UISearchController) {
-        navigationItem.titleView = nil
-        definesPresentationContext = false
         
         searchController.searchBar.resignFirstResponder()
         searchController.searchResultsUpdater = nil
         searchController.searchBar.delegate = nil
         searchController.delegate = nil
+        self.searchController!.searchBar.removeFromSuperview()
         self.searchController = nil
         
         btnFavorites.hidden = false
+        navigationItem.prompt = nil
         navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.Search, target: self, action: "actionSearch:")
     }
     

    }

    func tableView(tableView: UITableView, willSelectRowAtIndexPath indexPath: NSIndexPath) -> NSIndexPath? {
        let section = items[indexPath.section]
        lastSelectedSpeaker = section[section.keys.first!]![indexPath.row]
        return indexPath

        btnFavorites.hidden = true
        
        if let searchController = searchController {
            didDismissSearchController(searchController)
        }
    }
    
