Update pdf viewer method