updating cell and table