Fix box orientation in GPU renderer.

Also add UI