cleaned up getting pdf viewer and added menu entries