add events for next/previous, closes #142