Move GUI stuff to render.