added in pagination for home page