Cleanup the user interface