Fix and adjusts pagination count, adds a route for groups page.