Edit dialog now doesn't change data without OK button