working on checking if there are new messages in chat