refactoring and fixed the scollUntil when using anchor links from top to bottom