We should add the listeners in `onBeforeShow`.