finialized history with ajax