some fixes to the dom notification