add spinner to the template so that it can be loaded in time