implemented Add, Edit and Delete in Training