added better pagination behavior in the scenarios view