add spinner when loading to page