Implemented scroll to top functionality