Solving scrolling problem