functionality for multiple chatrooms