update data when changing relationship from multi to single and back