Added pagination to the spending table.