Various improvements

* pagination now works for multiple tables
* last page can be aligned (In this way the table has every time the same height.)
* improvements to the pagination element (does not render ugly for large table with small width)