Add and remove listener events on elements in the document