trying to link events to changes in the dom