return when addEventListener is not working