set text when focus gained and lost