Rewrote pagination-function, styled pagination