Remove unused variables and when you add a new row it automatically regenerate the table