nav bar switch scrolls window to top or docked positions on click, and icon flips appropriately on scroll