callbacks added

added two callbacks: beforeScroll and afterScroll