add spinner for loading