Adding 'togglePreview' to export