solve the scrolling issue