implements the logic for scrolling completed