update ui of progress bar