Fixed double submit in GLM UI.

Note: Select input should have always selected a default value.
In other case, no value is sent during form submit which causes that a
user has to select a value explicitelly and submit the form again.
PP for json output.