update model relationship