refactor chatbox