changed order of message and time of message on chats