fixed the scrollToTop button appearing and disappearing