added fancy scrolling functionality