added pagination, broke out to a template include