update to use add event listener, duh\!