building ChatroomController