updated width value of progress bar to make it match the displayed value