hide badge when closing container