updates the the pdf viewer