Add "goback" option.
If goback is true, then go next will return to start if at last, go previous will return to end if at first