fixed thread gui issues, TCP port number changed