                                             constant: 0.0)
         view.addConstraint(constraint)
 
-        let displayLabelVConstraints = NSLayoutConstraint.constraints(withVisualFormat: "V:[label]-20-|",
+        let displayLabelVConstraints = NSLayoutConstraint.constraints(withVisualFormat: "V:[pageControl]-20-|",
                                                                                       options: [],
                                                                                       metrics: nil,
-                                                                                      views: ["label": displayLabel])
+                                                                                      views: ["pageControl": pageControl])
         view.addConstraints(displayLabelVConstraints)
     }
 

open class ImageSliderViewController: UIViewController, ImageSliderViewDelegate {

    open let imageSliderView: ImageSliderView
    open let displayLabel = UILabel()

    public init(currentIndex: Int, imageUrls: [String]) {
        imageSliderView = ImageSliderView(currntIndex: currentIndex, imageUrls: imageUrls)

    }

    open func setDisplayLabelConstraints() {
        let constraint = NSLayoutConstraint(item: pageControl,
                                            attribute: NSLayoutAttribute.centerX,
                                            relatedBy: NSLayoutRelation.equal,
                                            toItem: view,
