Avoid duplicate event listeners