Cleaning up ui.