clean smooth_scroll_to function