second commit updated with loading spinner