index fixed, working on pages