add chat window click event