Update loading state