refactored hud initiation