update progress bar value