Added add_view & add_app functions