added setting class of an created inputs, removed cloning of original input