set active field for each page correctly, part 2