make progress bar functional