Addedn next and prev click handlers