               {% else %}
                        <option value="{{ mod }}">{{ mod }}</option>
                    {% endif %}
                {% endfor %}
            </select>
        </li>

        <li>
            <label for="state_select">State Variable</label>
            <select id="state_select" onchange="Fourier_changeState(this.value)">
                {% for state in state_list %}
                    {% if state==state_variable %}
                        <option value="{{ loop.index0 }}" selected