adjust prev/next buttons