                      <li>
                                            <select class="form-select mouseButtonOptimization" name="mouseButtonOptimization">
                                                {{ range $key, $sm := $device.SwitchModes }}
                                                {{ if eq $key $device.DeviceProfile.ButtonOptimization }}
                                                <option value="{{ $key }}" selected>{{ $sm }}</option>
                                                {{ else