     @IBOutlet weak var userAboutLabel: UILabel!
     @IBOutlet weak var userImageView: UIImageView!
     @IBOutlet weak var userNameLabel: UILabel!
-    @IBOutlet weak var connectButton: UIButton!
+    
+    @IBOutlet weak var connectLeftButton: UIButton!
+    @IBOutlet weak var connectRightButton: UIButton!
     
     override func awakeFromNib() {
         super.awakeFromNib()

        userImage = cellUser.images.valueForKey("profilePic") as! TGImage
        self.userImageView.downloadedFrom(link: userImage.url, contentMode: .ScaleAspectFill)
        
        if self.connectButton != nil {
            if cellUser.isFriend {
                self.connectButton.selected = true
            } else {
                self.connectButton.selected = false
            }
        }
        
    }
    
    @IBAction func connectPressed(sender: UIButton) {
        if sender.selected {
            
            Tapglue.unfriendUser(cellUser, withCompletionBlock: { (success: Bool,error: NSError!) -> Void in


        }
    }
    
    @IBAction func connectLeftPressed(sender: UIButton) {
        if sender.selected {
            Tapglue.unfollowUser(cellUser, withCompletionBlock: { (success: Bool, error: NSError!) -> Void in
                if success {
                    print("User unfollow successful")
                    dispatch_async(dispatch_get_main_queue(), { () -> Void in
                        sender.selected = false
                        self.unfollowingUserCustomizeButton()
                    })
                } else if error != nil{
                    print("Error happened\n")
                    print(error)
                }
            })
        } else {
            Tapglue.followUser(cellUser, withCompletionBlock: { (success: Bool, error: NSError!) -> Void in
                if success {
                    print("User follow successful")
                    dispatch_async(dispatch_get_main_queue(), { () -> Void in
                        sender.selected = true
                        self.followingUserCustomizeButton()
                    })
                } else if error != nil{
                    print("Error happened\n")
                    print(error)
                }
            })
        }
    }
    
    func followingUserCustomizeButton(){
        self.connectLeftButton.setTitle("Following", forState: .Selected)
        self.connectLeftButton.backgroundColor = UIColor(red:0.016, green:0.859, blue:0.675, alpha:1)
    }
    func unfollowingUserCustomizeButton(){
        self.connectLeftButton.setTitle("Follow", forState: .Normal)
        self.connectLeftButton.backgroundColor = UIColor.lightGrayColor()
    }
    
    func friendUserCustomizeButton(){
        self.connectRightButton.setTitle("Friend", forState: .Selected)
        self.connectRightButton.backgroundColor = UIColor(red:0.016, green:0.859, blue:0.675, alpha:1)
    }
    func unfriendUserCustomizeButton(){
        self.connectRightButton.setTitle("Add Friend", forState: .Normal)
        self.connectRightButton.backgroundColor = UIColor.lightGrayColor()
    }

}
