reimplementation of close button
closing is done via reloading of the page which is not nice, but the way it was before is not entirely working. It would close the pdf viewer but for the next pdf file the download dialoge appears instead of pdf viewer.