changed submit to preview