add auto-preview