edit update callback