make prev/next version buttons work.