How to auto-open chatbox when a new message arrives?