add chatbox event