adding pages index