Infinite scroll for materials added, shit-code partially beautified