Created the UI thread for the client