fix close on edit ingredient dialog