update progress bar behaviour