add loading
template.js