made event listener listen on in capture phase