Added undo and redo settings, and tweaked the settings menu operation