finalizing changes to server.ui and optimizing performance in the server.