Adds infinite scroll support and templates