added delete and finshed edit