added text input on edit mode