fixbug of notifyErrors
add reset function
change logic of isFormDataChanged