updated createInputHtml function from master