saving before showing the submission dialog
sync