add view works. delete and undo do not work