updated endpage event