update the progress bar