adds next and previous button functionality.  data-times are tracked in array.
merge alex's files