remove un-needed code
fix module path in require
fix app refrence to be correct at view construction