Added feature for infinite scrolling toggle