Save history after index process