make setMarker responsive