registered listeners for both next and previous