add app-hosted-index.html
make use of postMessage