added gui for client
works good only with one thread