rebuild for shadow dom