debug prev and next click handlers