implemented desktop chat functionality