change repin functionality to use DataManager.addPin, to clone the pin instead of reference it