fixed text line issue and duplicate posts when doing an input