call updateTo in onfocus