adding a loading bar