Fixed previewing content when submitting or updating