improved the progress bar