Added close button to preview panel.