remove next, prev routes and functions.