refine the check function
remove onfocus out
add extension