Made popups closable with escape