Adding callback for Shadow DOM elements