fix duplicate var decleartion
add app view
instantiated app