index pages properly