Define index and check pages