First implementation of update progressbar