Moving GUI stuff to hud.