Smooth scrolling function added