Add functions to build inputs DOM.