adds concept of onUpdate callback for baseModel