         progressbar.titles = ["Step 1".localized, "Step 2".localized, "Step 3 step again".localized,]
     }
     
+    // MARK: Misc
+    func updateButtons(_ currentTab: Int) {
+        nextButton.isEnabled = currentTab < progressbar.titles.count
+        prevButton.isEnabled = currentTab > 0
+        progressbar.currentTab = currentTab
+        progressbarWithImages.currentTab = currentTab
+        currentTabLabel.text = "\(currentTab)"
+    }
+    
+    // MARK: lifecycle
     override func viewDidLoad() {
         super.viewDidLoad()
         configureTitleProgressBar()

        return UIEdgeInsets(top: 10, left: 10, bottom: 30, right: 30)
    }
    
    func configureProgressBarWithImages() {
        progressbarWithImages.insets = inset
        progressbarWithImages.titles = ["Image 1".localized, "Image 2".localized, "Image 3".localized,]

        tab -= 1
        updateButtons(tab)
    }
}

