added animation and loading bar