Add onChange support to model.