update table component and example