add idDevice improve infowindow