linking next and previous model