added a progress dialog when the data is loading