more work on editor. Delete button is back again. Removed some bugs