         if let navigationController = HMViewControllerManager.sharedInstance.navigationController {
             doneCellAnimations =  false
             UIView.animateWithDuration(0.15, delay: 0.0, usingSpringWithDamping: 1.0, initialSpringVelocity: 1.0, options:UIViewAnimationOptions(0), animations: { () -> Void in
-                viewController.view.transform = CGAffineTransformScale(CGAffineTransformIdentity, 0.6, 0.6)
+                self.viewcontrollerWithScaleTransformation(self.scaleTransformation)
                 }) { (finished) -> Void in
                     self.view.alpha = 0
                     navigationController.presentViewController(self, animated:false, completion: { () -> Void in

        }
        
        UIView.animateWithDuration(0.3/1.5, delay:0.0, usingSpringWithDamping:1.0, initialSpringVelocity:1.0, options:UIViewAnimationOptions(0), animations: { () -> Void in
            self.currentController?.view.transform = CGAffineTransformScale(CGAffineTransformIdentity, 1.0, 1.0)
            }) { (finished) -> Void in
                self.doneAnimations = false
                self.tableView.reloadData()

    
    @objc private func didRotate (notification: NSNotification ) {
        
        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(0.1 * Double(NSEC_PER_SEC))), dispatch_get_main_queue()) {
            self.viewcontrollerWithScaleTransformation(self.scaleTransformation)
        }
        
        updateFrames()
        
        tableView.setContentOffset(CGPointMake(0, 0), animated: false)
    }
    
    @objc private func viewcontrollerWithScaleTransformation (scale: CGFloat) {
        if viewcontrollerScaleTransformation {
            currentController?.view.transform = CGAffineTransformIdentity
            currentController?.view.frame = UIScreen.mainScreen().bounds
            currentController?.view.transform = CGAffineTransformScale(CGAffineTransformIdentity, scale, scale)
        }
    }
    
    // MARK: - Update frames and constraints methods
