pass template node to event listener in templates