adding logic to previous/next article links