complete working model of delete and edits