Replaces flags on pages index