Added function to edit table field