Convert more UI code to Thin3D