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