made the map go to current position when switching to it.