add code to chats room view template