migrate settings menu events to commands.