updating infobox to support a button instead of a img for close element