Update the UI and clean up a lot of the server code.