showPreview is set to false by default