Change the event listeners registration