adding progress bar while the files are processed