implimented paged based items

fixed PhP for the paths. Also added the functinality to the HTML.
test items