feat(progressbar): respond to changes in max dynamically

We have a use case where the max of the progress bar should change dynamically so this pull request enables that behaviour.