functionality for multiple chat rooms