use new row.inPocket / row.outPocket instead of row.pocket.
Showing impact for history rows from each pocket properly. Changing how $scope.pocket.index how is the pocketId (pocket number, multisig id).