fix so that event emitter state does not bleed between pages