added toggling capability between editing/saved states