swithed to settimeout for all focus() methods.