updateProgressBar cleaned