Updated scroll to fix state CSS class