changed the way preview is refreshed from latexmk