close panel on escape