added chat input and channel switching