add and remove loading icon when reloading table data