Attempt to refactor the UI.