Add smooth scrolling logic