recieves messages and show then in chat window