cleaned up code in ngWidApp, condensed it down over 200 lines