small fixes for refreshing tables