Updated smooth scrolling functions