Cleaning up UI.