Added events for modelchanged and viewchanged.