updated the PDF reloading