getting prev/next buttons ready