added pagination via gem