fix chatbox minimize button event listener