added feature for chat messages