use async call to fix chrome display issue ,and code prettify