connect undo and redo menu items to methods