close all infoboxes before opening another one