onEndChanges