Corrected Back to Top functionality