work on previous/next buttons and current Index tracking