replace dialog by redirect to preview