refactoring about show google map and infowindow