close preview by esc