added previous, next buttons