remove the use of $dom_addEventListener