adding a loading animation