paginator function nearly done and seo metadata done