Top-right icon changes depending on file. Hovering over reveals a close icon, which, if clicked on, runs resestViewer()