Reworked event listener registration in Front Door.