     override func drawRect(rect: CGRect) {
         if (pages.count > 0) {
             // set custom attrs
-            tabScrollView.backgroundColor = tabSectionBackgroundColor
-            contentScrollView.backgroundColor = pageSectionBackgroundColor
+            tabSectionScrollView.backgroundColor = tabSectionBackgroundColor
+            contentSectionScrollView.backgroundColor = contentSectionBackgroundColor
             
             // clear all
-            for subview in tabScrollView.subviews {
+            for subview in tabSectionScrollView.subviews {
                 subview.removeFromSuperview()
             }
-            for subview in contentScrollView.subviews {
+            for subview in contentSectionScrollView.subviews {
                 subview.removeFromSuperview()
             }
             for page in pages {
                 page.isLoaded = false
             }
             
-            var tabScrollViewContentWidth: CGFloat = 0
-            var contentScrollViewContentWidth: CGFloat = 0
-            let tabScrollViewHeight = pages[0].tabView.frame.size.height
-            let contentScrollViewHeight = self.frame.size.height - tabScrollViewHeight
-            
-            // set tabScrollView size
-            tabScrollView.frame = CGRect(x: 0, y: 0, width: self.frame.size.width, height: tabScrollViewHeight)
-            tabScrollView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: "tabScrollViewDidClick:"))
-            
-            // set contentScrollView size
-            contentScrollView.frame = CGRect(x: 0, y: tabScrollViewHeight, width: self.frame.size.width, height: contentScrollViewHeight)
+            var tabSectionScrollViewContentWidth: CGFloat = 0
+            var contentSectionScrollViewContentWidth: CGFloat = 0
+            let tabSectionScrollViewHeight = pages[0].tabView.frame.size.height
+            let contentSectionScrollViewHeight = self.frame.size.height - tabSectionScrollViewHeight
+            
+            // set tabSectionScrollView size
+            tabSectionScrollView.frame = CGRect(x: 0, y: 0, width: self.frame.size.width, height: tabSectionScrollViewHeight)
+            tabSectionScrollView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: "tabSectionScrollViewDidClick:"))
+            
+            // set contentSectionScrollView size
+            contentSectionScrollView.frame = CGRect(x: 0, y: tabSectionScrollViewHeight, width: self.frame.size.width, height: contentSectionScrollViewHeight)
             
             // set pages and content views
             for (index, page) in pages.enumerate() {
-                page.tabView.frame = CGRect(x: tabScrollViewContentWidth, y: 0, width: page.tabView.frame.size.width, height: tabScrollView.frame.size.height)
+                page.tabView.frame = CGRect(x: tabSectionScrollViewContentWidth, y: 0, width: page.tabView.frame.size.width, height: tabSectionScrollView.frame.size.height)
                 // bind event
                 page.tabView.tag = index
                 page.tabView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: "tabViewDidClick:"))
                 
-                tabScrollView.addSubview(page.tabView)
+                tabSectionScrollView.addSubview(page.tabView)
                 
                 // without lazy loading
                 if (cachePageLimit <= 0) {
-                    page.contentView.frame = CGRect(x: contentScrollViewContentWidth, y: 0, width: page.contentView.frame.size.width, height: contentScrollView.frame.size.height)
-                    contentScrollView.addSubview(page.contentView)
-                }
-                
-                tabScrollViewContentWidth += page.tabView.frame.size.width
-                contentScrollViewContentWidth += page.contentView.frame.size.width
-            }
-            tabScrollView.contentSize = CGSize(width: tabScrollViewContentWidth, height: tabScrollViewHeight)
-            contentScrollView.contentSize = CGSize(width: contentScrollViewContentWidth, height: contentScrollViewHeight)
+                    page.contentView.frame = CGRect(x: contentSectionScrollViewContentWidth, y: 0, width: page.contentView.frame.size.width, height: contentSectionScrollView.frame.size.height)
+                    contentSectionScrollView.addSubview(page.contentView)
+                }
+                
+                tabSectionScrollViewContentWidth += page.tabView.frame.size.width
+                contentSectionScrollViewContentWidth += page.contentView.frame.size.width
+            }
+            tabSectionScrollView.contentSize = CGSize(width: tabSectionScrollViewContentWidth, height: tabSectionScrollViewHeight)
+            contentSectionScrollView.contentSize = CGSize(width: contentSectionScrollViewContentWidth, height: contentSectionScrollViewHeight)
             
             // set contentInset of tab
             let tabPaddingLeft = (self.frame.size.width / 2) - (pages[0].tabView.frame.size.width / 2)
             let tabPaddingRight = (self.frame.size.width / 2) - (pages[pages.count - 1].tabView.frame.size.width / 2)
-            tabScrollView.contentInset = UIEdgeInsets(top: 0, left: tabPaddingLeft, bottom: 0, right: tabPaddingRight)
+            tabSectionScrollView.contentInset = UIEdgeInsets(top: 0, left: tabPaddingLeft, bottom: 0, right: tabPaddingRight)
             
             // set contentInset of content
             let contentPaddingLeft = (self.frame.size.width / 2) - (pages[0].contentView.frame.size.width / 2)
             let contentPaddingRight = (self.frame.size.width / 2) - (pages[pages.count - 1].contentView.frame.size.width / 2)
-            contentScrollView.contentInset = UIEdgeInsets(top: 0, left: contentPaddingLeft, bottom: 0, right: contentPaddingRight)
+            contentSectionScrollView.contentInset = UIEdgeInsets(top: 0, left: contentPaddingLeft, bottom: 0, right: contentPaddingRight)
             
             // first time
             if (!isStarted) {

    }
    
    func stopScrolling() {
        tabScrollView.setContentOffset(tabScrollView.contentOffset, animated: false)
        contentScrollView.setContentOffset(contentScrollView.contentOffset, animated: false)
    }
    
    private func resetTabs() {

    // scrolling
    func scrollViewDidScroll(scrollView: UIScrollView) {
        if (scrollView == activeScrollView) {
            if (scrollView == tabSectionScrollView) {
                contentSectionScrollView.contentOffset.x = (tabSectionScrollView.contentOffset.x + tabSectionScrollView.contentInset.left) * (contentSectionScrollView.contentSize.width / tabSectionScrollView.contentSize.width) - contentSectionScrollView.contentInset.left
            }
            
            if (scrollView == contentSectionScrollView) {
                tabSectionScrollView.contentOffset.x = (contentSectionScrollView.contentOffset.x + contentSectionScrollView.contentInset.left) * (tabSectionScrollView.contentSize.width / contentSectionScrollView.contentSize.width) - tabSectionScrollView.contentInset.left
            }
            resetTabs()
        }
