added a callback function

when the scrolls ends, a callback could be fired to update stuff on the page.