finished history total and detail page.