added pagination with kaminari