added size config to textboxes and selects
better handling of checkbox value
dry
relaxed templates type
added tests