fixes #12 redo, fexes #1 unsaved changes prompt