chat closed and opened.