using react's  to get the markers to move