     
     func changeFrameParadigm(mode: T2GLayoutMode, frame: CGRect) {
         if self.scrollView!.contentOffset.x != 0 {
-            self.moveButtonsInHierarchy(true)
+            self.moveButtonsInHierarchy(shouldHide: true)
             self.scrollView!.contentOffset.x = 0
         }
         

    
    func handleScrollEnd(scrollView: UIScrollView) {
        if self.swipeDirection == .Right {
            scrollView.scrollRectToVisible(CGRectMake(0, 0, scrollView.frame.size.width, scrollView.frame.size.height), animated: true)
            self.delegate?.didCellClose(self.tag)
        } else {
            scrollView.scrollRectToVisible(CGRectMake(self.frame.size.width, 0, scrollView.frame.size.width, scrollView.frame.size.height), animated: true)
            self.delegate?.didCellOpen(self.tag)
        }
    }
    
    func moveButtonsInHierarchy(hide: Bool) {
        for index in 0...3 {
            if let view = self.viewWithTag(70 + index) as? T2GCellButton {
                if hide {
                    self.sendSubviewToBack(view)
                } else {
                    self.bringSubviewToFront(view)

    
    func scrollViewDidEndScrollingAnimation(scrollView: UIScrollView) {
        if self.swipeDirection == .Left {
            self.moveButtonsInHierarchy(shouldHide: false)
        }
    }
    
