i am not sure if it makes sense to set a last page at all in this scenario .. i just did it because otherwise the template wouldnt display any next button.