copy index head to all pages