add preview for selected file