implemented progress bar