set proper page links