added ref to cur/next/prev page