edit update method to notify change