added delete mode to editor