dynamically set number input min/max. closes #30