add 4 second timeout to remove loading spinner