updates scroller function to include callback