added a loading bar