restructured HUD into a separate object