fixes #12 redo, fixes #1 unsaved changes prompt