adding scrolling navbar functionality