added delete support to edit models