Changing the pagination
Some changes in template are done