Implement ui/glfw except for inputting