Settings menu code now works with switch cases.