     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)
-                }
+
+                updateForFold(isMoreUserMessagesFold, withCountOfItems: countOfFilteredUserMessages, inSection: .MessageRecord)
             }
         }
     }

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

                if isMoreFeedsFold == false {
                    resultsTableView.insertRowsAtIndexPaths(indexPaths, withRowAnimation: .Automatic)
                } else {
                    resultsTableView.deleteRowsAtIndexPaths(indexPaths, withRowAnimation: .Automatic)
                }
            }
        }
    }


    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 {

                updateForFold(isMoreFriendsFold, withCountOfItems: countOfFilteredFriends, inSection: .Friend)
            }
        }
    }
