         } else if(sender.state == UIGestureRecognizerState.Ended) {
             
             switch rangeX {
+                case 0:
+                    UIView.animateWithDuration(0.5, delay: 0, usingSpringWithDamping: 0.8, initialSpringVelocity: 5, options: nil, animations: { () -> Void in
+
+                        self.msgView.center.x = self.msgViewOrigin.x
+                        self.rightIcon.alpha = 0
+                        self.leftIcon.alpha = 0
+
+                    }, completion: { (Bool) -> Void in
+                        // code
+                    })
                 case 1, 2:
                     // auto slide msg off the screen to the right
                     UIView.animateWithDuration(0.5, delay: 0, usingSpringWithDamping: 0.8, initialSpringVelocity: 5, options: nil, animations: { () -> Void in


    var msgViewOrigin: CGPoint!     // original center point of msgView
    var msgPanCenter: CGPoint!      // current center point of msgView
    var rightIconOrigin: CGPoint!
    var leftIconOrigin: CGPoint!
    var offsetIcon: CGFloat!        // offset of the left and right icons
    
    var bgGrey: UIColor!
    var bgGreen: UIColor!

                        self.leftIcon.center.x = self.msgView.center.x - self.offsetIcon
                        
                        }, completion: { (Bool) -> Void in

                            self.resetMessage()
                    })
                case -1, -2:
