Added close preview window on click