remove dirty flag on submit