worked on the dete and update methods
addded buttons for save changes, dscard changes and delete