add esc function for logo, close button