Loading animation now works