connect undo and redo menu items to their methods