add join and leave methods for chat rooms