move cursor to the end of the text for editing