How to save submission after editing it?