Cleaning up user interface.