Allow switching between pdfjs and native viewer