added close button for previews