Improve chatbox opening/closing