fixed the info-window popup function