adding name attribute of input element as a css class name of the widget wrapper