adding a pages index