added new scrollIntoView method and call it before clicking on a button