added thread for loading data and visible progressbar