scrollto top when changing the view avoids scroll bugs