updated newChatRoom class