fix edit and save changes