edit pagination pre/next