client program to send request and chat with gui