customizable previewTemplate in configuration