adding a progressbar and times