Update detail pages for 4 main models; add first and last page links to pagination