another edit to Mark's stuff to make the pages link work