update selectors for shadow DOM compatibility