Refactor main into a new Mlab object.
Add a basic UI element.