Clean up the UI and document it