better scroll to top handling