moved hud to own class