     }
     
     //MARK: collectionView delegate
+    
+    func scrollViewDidScroll(_ scrollView:UIScrollView)
+    {
+        let width:CGFloat = scrollView.bounds.maxX
+        let height:CGFloat = scrollView.bounds.maxY
+        let width_2:CGFloat = width / 2.0
+        let height_2:CGFloat = height / 2.0
+        let offsetX:CGFloat = scrollView.contentOffset.x
+        let compoundPos:CGFloat = width_2 + offsetX
+        let point:CGPoint = CGPoint(x:offsetX, y:height_2)
+        
+        guard
+            
+            let indexPath:IndexPath = collectionView.indexPathForItem(at:point)
+        
+        else
+        {
+            return
+        }
+        
+        let itemPath:Int = indexPath.item
+        pageController.currentPage = itemPath
+    }
     
     func collectionView(_ collectionView:UICollectionView, layout collectionViewLayout:UICollectionViewLayout, sizeForItemAt indexPath:IndexPath) -> CGSize
     {

        translatesAutoresizingMaskIntoConstraints = false
        clipsToBounds = true
        self.controller = controller
        
        let viewOptions:VOnboardOptions = VOnboardOptions(controller:controller)
        self.viewOptions = viewOptions

    private weak var controller:COnboard!
    private weak var collectionView:UICollectionView!
    private weak var labelDisclaimer:UILabel!
    private weak var pageController:UIPageControl!
    private let kOptionsHeight:CGFloat = 34
    private let kDisclaimerHeight:CGFloat = 70
    private let kPageControlHeight:CGFloat = 15
    
    convenience init(controller:COnboard)
    {
