added feature to set link to next page in templates/statics