switch used for chat interaction