adjust smooth scrolling function