implemented functionality to edit and remove a contact