 
     private let keyboardMan = KeyboardMan()
 
+    private func updateForFold(fold: Bool, withCountOfItems countOfItems: Int, inSection section: Section) {
+
+        let indexPaths = ((1 + Section.maxNumberOfItems)...countOfItems).map({
+            NSIndexPath(forRow: $0, inSection: section.rawValue)
+        })
+
+        if fold == false {
+            resultsTableView.insertRowsAtIndexPaths(indexPaths, withRowAnimation: .Automatic)
+        } else {
+            resultsTableView.deleteRowsAtIndexPaths(indexPaths, withRowAnimation: .Automatic)
+        }
+    }
+
     private var isMoreFriendsFold: Bool = true {
         didSet {
             if isMoreFriendsFold != oldValue {
-                let indexPaths = ((1 + Section.maxNumberOfItems)...countOfFilteredFriends).map({
-                    NSIndexPath(forRow: $0, inSection: Section.Friend.rawValue)
-                })
-
-                if isMoreFriendsFold == false {
-                    resultsTableView.insertRowsAtIndexPaths(indexPaths, withRowAnimation: .Automatic)
-                } else {
-                    resultsTableView.deleteRowsAtIndexPaths(indexPaths, withRowAnimation: .Automatic)
-                }
+
+                updateForFold(isMoreFriendsFold, withCountOfItems: countOfFilteredFriends, inSection: .Friend)
             }
         }
     }

    private var isMoreUserMessagesFold: Bool = true {
        didSet {
            if isMoreUserMessagesFold != oldValue {
                let indexPaths = ((1 + Section.maxNumberOfItems)...countOfFilteredUserMessages).map({
                    NSIndexPath(forRow: $0, inSection: Section.MessageRecord.rawValue)
                })

                if isMoreUserMessagesFold == false {
                    resultsTableView.insertRowsAtIndexPaths(indexPaths, withRowAnimation: .Automatic)

                } else {
                    resultsTableView.deleteRowsAtIndexPaths(indexPaths, withRowAnimation: .Automatic)
                }
            }
        }
    }

    private var isMoreFeedsFold: Bool = true {
        didSet {
            if isMoreFeedsFold != oldValue {

                updateForFold(isMoreFeedsFold, withCountOfItems: countOfFilteredFeeds, inSection: .Feed)
            }
        }
    }
