new addPin functionality