fixed to only poll if node is found on page with id=events