chatting box closing operation changed