How does the modelChanged event ensure if the current model differs from the rootModel?