fixed the handling of show and hide resource app components when changing clouds