onfig = savedConfig;

                if (!config) {
                    config.LocationsExcluded = [];
                }

                ApiClient.getVirtualFolders().then(function (virtualFolders) {
                    loadVirtualFolders(config, virtualFolders);
                });


            });








            function loadVirtualFolders(config, virtualFolders) {
                var page = $.mobile.activePage;
                var html = "";
                html += '<div data-role="controlgroup">