successfully deletes contact on click event