Improved command history in the UI.