add onScroll to init function, remove old loading functions