Implemented smooth scrolling