added support for callback on scroll at the bottom