refactor ui/win
 add native message
 .
 .
 add sampleapp