Added event bindings to ensure that the model gets changed