added edit/delete functions