First compiling version of the huge render/ui refactor