update loading spinner, fix curl