     
     // MARK: - Tabs Click
     func tabViewDidClick(sensor: UITapGestureRecognizer) {
-        activeScrollView = tabScrollView
+        activeScrollView = tabSectionScrollView
         moveToIndex(sensor.view!.tag, animated: true)
     }
     
-    func tabScrollViewDidClick(sensor: UITapGestureRecognizer) {
-        activeScrollView = tabScrollView
+    func tabSectionScrollViewDidClick(sensor: UITapGestureRecognizer) {
+        activeScrollView = tabSectionScrollView
         moveToIndex(pageIndex, animated: true)
     }
     

    override func drawRect(rect: CGRect) {
        if (pages.count > 0) {
            // set custom attrs
            tabScrollView.backgroundColor = tabSectionBackgroundColor
            contentScrollView.backgroundColor = pageSectionBackgroundColor
            
            // clear all
            for subview in tabScrollView.subviews {
                subview.removeFromSuperview()
            }
            for subview in contentScrollView.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)
            
            // 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)
                // bind event
                page.tabView.tag = index
                page.tabView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: "tabViewDidClick:"))
                
                tabScrollView.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)
            
            // 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)
            
            // 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)
            
            // first time
            if (!isStarted) {

    }
    
    func stopScrolling() {
        tabSectionScrollView.setContentOffset(tabSectionScrollView.contentOffset, animated: false)
        contentSectionScrollView.setContentOffset(contentSectionScrollView.contentOffset, animated: false)
    }
    
    private func resetTabs() {
