         tab -= 1
         updateButtons(tab)
     }
-
-    func updateButtons(_ currentTab: Int) {
-        nextButton.isEnabled = currentTab < progressbar.titles.count
-        prevButton.isEnabled = currentTab > 0
-        progressbar.currentTab = currentTab
-        progressbarWithImages.currentTab = currentTab
-        currentTabLabel.text = "\(currentTab)"
-    }
 }
 

        progressbar.titles = ["Step 1".localized, "Step 2".localized, "Step 3 step again".localized,]
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        configureTitleProgressBar()

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