updating code to support new progress bar