Fix the PDF viewer glitch between multiple pdfs opened

So when switching between opened references to view the pdf, the PDF keeps going back to the first page. Very annoying when trying to cross-reference material and I have to remember where I was up to all the time.