updating the value of the progress bar