add previous and next links templates. The code is not implemented anywhere