 
         switch section {
         case .Local:
-            return searchControllerIsActive ? (filteredFriends?.count ?? 0) : friends.count
+            //return searchControllerIsActive ? (filteredFriends?.count ?? 0) : friends.count
+            return filteredFriends?.count ?? 0
         case .Online:
-            return searchControllerIsActive ? searchedUsers.count : 0
+            //return searchControllerIsActive ? searchedUsers.count : 0
+            return searchedUsers.count
         }
     }
 


    func searchBar(searchBar: UISearchBar, textDidChange searchText: String) {

        searchControllerIsActive = !searchText.isEmpty

        updateSearchResultsWithText(searchText)
    }

            return 0
        }

        return 25

//        if searchControllerIsActive {
//            return 25
//            
//        } else {
//            return 0
//        }
    }

    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
