Make previous/next buttons work again