Pagenavi optimizations