added toggle-chat functionality to the shell