correct total count, and ugly side-effects for the main content navi
build uid