Fixed bug with searches, escpe will close the viewer