implemented basic chat mode switcher