added restriction to screen scrolling