added navigation functionality to scroll onClick