implement delete and edit methods