fixed text reset and added input text centering