update header and add spinner when testing