add prev and next buttons