completed the edit/update and deelet functionailty