add controller logic and app view