focus on input is placed at the end of the text