added edit ingredient functionality