         
         if let newSearchTerm = CoreDataController.sharedInstance.saveSearchTerm(formatSearchTerm(stringSearchTerm), timeStamp: NSDate().timeIntervalSince1970) // TODO move here el termino en minusculas
         {
-            history.insert(newSearchTerm, atIndex: 0)
-            performSegueWithIdentifier("showSearchResults", sender: newSearchTerm)
+            showSearchResults(newSearchTerm)
         }
     }
 }

    
    // MARK: - Navigation
    
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?)
    {
        if segue.identifier == "showSearchResults"

        {
            if let searchTerm = CoreDataController.sharedInstance.saveSearchTerm(formatSearchTerm(text), timeStamp: NSDate().timeIntervalSince1970) // TODO move here el termino en minusculas
            {
                showSearchResults(searchTerm)
            }
            // TODO do something for el else
        }
