[ADD] state either stored or dynamic with a command

select inputs replaced by buttons (usability)
JS client handles errors