         self.tableView.tableFooterView = nil
     }
 
+    func needSearch() -> Bool{
+        return searchBar.text.lengthOfBytesUsingEncoding(NSStringEncoding.allZeros) > 0
+    }
+
     func searchFeeds(text: String) {
         if searchDisposable != nil && !searchDisposable!.disposed {
             searchDisposable!.dispose()
         }
         feeds = []
         tableView.reloadData()
-        if text.lengthOfBytesUsingEncoding(NSStringEncoding.allZeros) == 0 {
+        if !needSearch() {
             return
         }
         let query = SearchQueryOfFeed(query: text)

        case .SearchResult:
            return feeds.count
        case .Recommend:
            return sampleFeeds.count
        case .Hypem:
            return blogLoader.blogs.count
        }
    }

                                                           style: UIBarButtonItemStyle.Plain,
                                                          target: self,
                                                          action: "close")
        searchBar                 = UISearchBar(frame:CGRectMake(0, 0, view.bounds.size.width, SEARCH_BAR_HEIGHT))
        searchBar.placeholder     = "URL or Keyword".localize()
        searchBar.delegate        = self
        tableView.tableHeaderView = searchBar
        navigationItem.title      = "Import Feed".localize()
        indicator = UIActivityIndicatorView(activityIndicatorStyle: UIActivityIndicatorViewStyle.Gray)
        indicator.bounds = CGRect(x: 0,
            y: 0,
