During the years in which the Soviet Union and Yugoslavia collapsed and terrorists attacked the United States and Europe , NATO has sought to transform itself from a cold-war bloc intended to deal with a conventional war in Europe to a more flexible alliance able to deploy units wherever needed on short notice .