adding previous and next pages to scenarios