preview to previewDiv