Added edit function for contacts