Modified the index view function and the index template.
Keeping the whole Pagination object instead of its items attribute.
Modified the index template to acquire the items attribute instead.