Modify the UI for flags and events