added pagenavi function and styling (centered)