add default behavior for add new links or update existing