use parameters without passing them in an EventListener
how to use parameters without passing them in an EventListener