added rudimentary HUD code