scroll to top when loading a new code