Simplified uimanager code