lots of changes to chatbox