addded alternative way of editing data table