adding the scrolling effect