Improve GUI, send IME context to server, clean up