add progress bar for loading pdf.