added scroll-to top function that appears on the main bar