Update switchApp.C