Implemeneted ModifyAttribute handler to update DOM elements.