[MP] ui_shared.c cleanup