Refactor HUD management. Split each hud into multiple documents called units.