add anchor in URL when chat window is open/closed