Added edit mode to save table.