fix contact edit function