updating progressbar