Fix UI blocking issue while data loading