switchView: return promise that let us know when the view has been loaded