Make UI mojo 5.0+ compatible.