Implement viewer prev/next controls