made input text refresh on submit