refactor to create showMarker fcn