handle table refresh "properly"