close #8 - merging dynamic number of input in frontend