adding progress bar for uploading pdfs