Replaced odd newlink function with new pager function