support previous and next on id=