putting spinner in html template