fixes for shadow dom page