handle replayend event