developed scrollTo functionality