add listen method to DOM elements