created app, auto closing views, and cleanup