update progressbar in other thread