add loading animation in the index