Avoid scroll to top when adding attributes