Modifed scrollPage function and broke out the scroll functionality so that it is trigged after each modal.