improvements to pdf viewer