add code to room method in chats controller