add code to chats new_message view template