Added elementId attribute to the input widget