[Improve] auto-preview
Merge pull request #2 from zhaocai/master

add auto-preview