added previous/next buttons