atrocious code. infowindows