Put most of the GUI into XML layout for simpler code.