implemeted loading progress bar to indicate lags caused by loading