a class for listeners and elements of the dom