added loading to the table ui