fixed duplicate input boxes problem