revision to template on AppHtmlWeb and minor tuned