add reset when submitting relations