change html structure of inputs