fix(pagination): make use of total returned from server

SD-384