start refactor of scaffold gnerator
add an application namespace and attach to window