This Fixes #958

@gordonwoodhull I have tried to put my lost changes for keeping the pagination panel fixed and reduced size. You can review and add changes if you think can be better.