attach views to app object