fixed scroll to top when not at top and switch page