add fuction:focus last word
improve focus function