added nextPath() to the controller and use it to step thr