fix a bug that app crashes when opening infowindow. it happens because of returning nil in the overridden method
add functions of displaying snippet