added code to edit a contact