         self.label.layer.addAnimation(animGroup, forKey: "_animateLabelBack")
         CATransaction.commit()
     }
+    
     func showInactiveBorder() {
         
         CATransaction.begin()
         CATransaction.setCompletionBlock { () -> Void in
             self.activeBorder.layer.opacity = 0
         }
-        var anim2 = CABasicAnimation(keyPath: "transform")
-        var fromTransform = CATransform3DMakeScale(1.0, 1.0, 1)
-        var toTransform = CATransform3DMakeScale(0.01, 1.0, 1)
+        let anim2 = CABasicAnimation(keyPath: "transform")
+        let fromTransform = CATransform3DMakeScale(1.0, 1.0, 1)
+        let toTransform = CATransform3DMakeScale(0.01, 1.0, 1)
         anim2.fromValue = NSValue(CATransform3D: fromTransform)
         anim2.toValue = NSValue(CATransform3D: toTransform)
         anim2.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseOut)

            CGContextBeginPath(context);
            CGContextAddLines(context, borderlines, 2);
            CGContextSetLineWidth(context, 1.0);
            var  dashPattern : [CGFloat]  = [2, 4]
            CGContextSetLineDash(context, 0, dashPattern, 2);
            CGContextSetStrokeColorWithColor(context, borderColor.CGColor);
            CGContextStrokePath(context);

            self.label.textColor = self.kDefaultInactiveColor
        }
        
        let anim2 = CABasicAnimation(keyPath: "transform")
        var fromTransform = CATransform3DMakeScale(0.5, 0.5, 1)
        fromTransform = CATransform3DTranslate(fromTransform, -CGRectGetWidth(self.label.frame)/2, -CGRectGetHeight(self.label.frame), 0);
        let toTransform = CATransform3DMakeScale(1.0, 1.0, 1)
        anim2.fromValue = NSValue(CATransform3D: fromTransform)
        anim2.toValue = NSValue(CATransform3D: toTransform)
        anim2.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionEaseOut)
        
        let animGroup = CAAnimationGroup()
        animGroup.animations = [anim2]
        animGroup.duration = 0.3
        animGroup.fillMode = kCAFillModeForwards;
