improve def scope
when manipulating the DOM, its often necessary to use the correct class
def scope debugging
fix for def scope dom