adds an up-to-date check

checks if the pages are all up-to-date