Added smooth scrolling functions