implemented improved info box closure