Now the fragment status in the UI is updated through event handler instead of directly.