added the index button for photo pages