update progressbar api