[changed] the way the app widget works.
[cleaned] the global scope