previous and next buttons work now