Documented onBeforePop and onAfterPop.