added nextPath() to the controller so that users can use it to step
through posts