adding code for scrolling