added template_name in the infowindow model + problems with fields index