minor modifications with chatbox