add the pagination of home page