added app view and wired everything up