refresh for TableUi add. Small refactoring