update for contact delete and edit