Fix scrollbar position when navigating from sidebar