[frontend] Save before submitting.  Should fix issue #113.