Fix UI when there are no tables