fix autosave but refresh of form on ajax submit and reset