reset commit on dialog