upodating changes for adding and deleting pins