Get loading animation to work