complete pagenav&archive feature