added prev and next buttons